package com.yimi.yinhepda.entity.response;

import java.math.BigDecimal;

/**
 * @author 000432
 * @date 2017/4/6
 * PDA卸车下拉配载信息
 */
public class QueryUnloadTask {
    /**
     * 配载单号
     */
    private String stowageNo;
    /**
     * 上一站编码
     */
    private String srcDeptCode;
    /**
     * 上一站名称
     */
    private String srcDeptName;
    /**
     * 下一站编号
     */
    private String destDeptCode;
    /**
     * 下一站名称
     */
    private String destDeptName;
    /**
     * 车牌号
     */
    private String carNo;
    /**
     * 总重量
     */
    private BigDecimal weight;
    /**
     * 总件数
     */
    private Integer piecesNum;
    /**
     * 总票数
     */
    private Integer priceNum;

    private Integer bizTypeCode;

    private String taskNo;
    /**
     * 封车状态:：1-未绑定，2-已绑定，3-解封，4-异常解封-封签遗失，5-异常解封-封签破损，6-异常解封-封签漏扫，7-异常解封-封签错误
     */
    private Integer sealStatus;
    /**
     * 日期班次
     */
    private String scheduleNo;
    /**
     * 备用到达部门编码
     */
    private String reseDeptCode;
    /**
     * 备用到达部门
     */
    private String reseDeptName;
    /**
     * 车标号
     */
    private String carMark;

    public String getCarMark() {
        return carMark;
    }

    public void setCarMark(String carMark) {
        this.carMark = carMark;
    }

    public Integer getBizTypeCode() {
        return bizTypeCode;
    }

    public void setBizTypeCode(Integer bizTypeCode) {
        this.bizTypeCode = bizTypeCode;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public Integer getSealStatus() {
        return sealStatus;
    }

    public void setSealStatus(Integer sealStatus) {
        this.sealStatus = sealStatus;
    }

    public String getScheduleNo() {
        return scheduleNo;
    }

    public void setScheduleNo(String scheduleNo) {
        this.scheduleNo = scheduleNo;
    }

    public String getStowageNo() {
        return stowageNo;
    }

    public void setStowageNo(String stowageNo) {
        this.stowageNo = stowageNo;
    }

    public String getSrcDeptCode() {
        return srcDeptCode;
    }

    public void setSrcDeptCode(String srcDeptCode) {
        this.srcDeptCode = srcDeptCode;
    }

    public String getSrcDeptName() {
        return srcDeptName;
    }

    public void setSrcDeptName(String srcDeptName) {
        this.srcDeptName = srcDeptName;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public BigDecimal getWeight() {
        if (weight == null) {
            weight = new BigDecimal(0);
        }
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Integer getPiecesNum() {
        if (piecesNum == null) {
            piecesNum = 0;
        }
        return piecesNum;
    }

    public void setPiecesNum(Integer piecesNum) {
        this.piecesNum = piecesNum;
    }

    public Integer getPriceNum() {
        if (priceNum == null) {
            priceNum = 0;
        }
        return priceNum;
    }

    public void setPriceNum(Integer priceNum) {
        this.priceNum = priceNum;
    }

    public String getDestDeptCode() {
        return destDeptCode;
    }

    public void setDestDeptCode(String destDeptCode) {
        this.destDeptCode = destDeptCode;
    }

    public String getDestDeptName() {
        return destDeptName;
    }

    public void setDestDeptName(String destDeptName) {
        this.destDeptName = destDeptName;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        final QueryUnloadTask other = (QueryUnloadTask) obj;
        if (this.getStowageNo() != other.getStowageNo()) return false;

        return true;
    }
}
